package com.itheima.web;

import com.itheima.service.SetmealGroupService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/SetmealGroup")
public class SetmealGroupController {

    @DubboReference
    private SetmealGroupService setmealGroupService;

    //查检查组信息一一对应
    @GetMapping("/selectGroupsById/{id}")
    public Long[] selectItemsByGroupId(@PathVariable("id") Long id){
        return setmealGroupService.selectItemsByGroupId(id);

    }



}
